<%@ page import="com.casework.auth.Company" %>
<div class="fieldcontain ${hasErrors(bean: companyInstance, field: 'name', 'error')} ">
    <label for="name">
        <g:message code="company.name.label" default="Name"/>

    </label>
    <g:textField name="name" value="${companyInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: companyInstance, field: 'contact', 'error')} ">
    <label for="contact">
        <g:message code="company.contact.label" default="Contact"/>

    </label>
    <g:textField name="contact" value="${companyInstance?.contact}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: companyInstance, field: 'phoneNumber', 'error')} ">
    <label for="phoneNumber">
        <g:message code="company.phoneNumber.label" default="Phone Number"/>

    </label>
    <g:textField name="phoneNumber" value="${companyInstance?.phoneNumber}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: companyInstance, field: 'numberOfLicenses', 'error')} ">
    <label for="numberOfLicenses">
        <g:message code="company.numberOfLicenses.label" default="Number of Licenses"/>

    </label>
    <g:textField name="numberOfLicenses" value="${companyInstance?.numberOfLicenses}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: companyInstance, field: 'email', 'error')} ">
    <label for="email">
        <g:message code="company.email.label" default="Email"/>

    </label>
    <g:textField name="email" value="${companyInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: companyInstance, field: 'expiryDate', 'error')} required">
    <label for="expiryDate">
        <g:message code="company.expiryDate.label" default="Expiry Date"/>
        <span class="required-indicator">*</span>
    </label>
    <g:render template="/templates/date" model="[date:companyInstance?.expiryDate, varName: 'expiryDate']"/>

</div>


